package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.github.talelin.latticy.dto.rule.ruleValue.RuleValueDTO;
import io.github.talelin.latticy.model.RuleValueDO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-08-23
 */
public interface RuleValueService extends IService<RuleValueDO> {

    boolean addRuleValue(RuleValueDTO dto);

    boolean updateRuleValueById(RuleValueDTO validator,Integer id);

    boolean deleteRuleValueById(Integer id);

    List<RuleValueDO> getRuleValueList(Integer ruleKeyId);

    RuleValueDO getRuleValueById(Integer id);

    IPage<RuleValueDO> getRuleValuePage(Integer ruleKeyId, Integer page, Integer count);
}
